package com.example.android_practice

import android.app.Application
import androidx.lifecycle.ProcessLifecycleOwner
import com.example.android_practice.lifeCycle.ApplicationObserver

/**
 * Created by tangcan on 20/9/26.
 * 修改人：tangcan
 * 修改时间：20/9/26 下午3:52
 * 修改备注：
 */
class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        ProcessLifecycleOwner.get().lifecycle.addObserver(ApplicationObserver())
    }
}